InitPartFromStorage
TheInitPartFromStorage
method initializes this part object from its stored data.
void InitPartFromStorage (in ODStorageUnit storageUnit, in ODPart partWrapper);
storageUnit
- A reference to a specified storage unit from which this part should read its persistent state.
partWrapper
- A reference to a part wrapper representing this part.
DISCUSSION
Whenever a document containing this part is opened, or if this part is added to a document via data transfer, the part must be instantiated and read into memory. OpenDoc calls this method to initialize the runtime part object from persistent storage.Your part's
InitPartFromStorage
method is similar to itsInitPart
method, except that it reads in data. OpenDoc passes a storage unit to your part, from which your part reads itself. Your part is responsible for reading the storage unit and preparing itself to receive other messages. Your part should retrieve, from its contents property, the value that represents the data stream to be read.OVERRIDING
When you subclassODPart
, you must override this method. Your override method must call its inherited method at the beginning of your implementation.SEE ALSO
"The InitPartFromStorage Method" on page 42 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"The InitPartFromStorage Method" on page 294 in OpenDoc Programmer's Guide.
"Reading Links in InitPartFromStorage" on page 390 in OpenDoc Programmer's Guide.
"The Part-Wrapper Object" on page 464 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help